<?php

namespace common\models\db\tables;

use Yii;

/**
 * This is the model class for table "{{%third_party_platform}}".
 *
 * @property int $id
 * @property string $platform_name 平台名
 * @property string $sys_component_id 使用系统组件ID
 * @property int $created_at
 * @property int $updated_at
 * @property int|null $deleted_at
 * @property int|null $created_by
 * @property int|null $updated_by
 * @property int|null $deleted_by
 * @property int $status
 */
class ThirdPartyPlatform extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%third_party_platform}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['platform_name', 'sys_component_id', 'created_at', 'updated_at', 'deleted_at', 'created_by', 'updated_by', 'deleted_by', 'status'], 'trim'],
            [['platform_name', 'sys_component_id', 'created_at', 'updated_at'], 'required'],
            [['created_at', 'updated_at', 'deleted_at', 'created_by', 'updated_by', 'deleted_by', 'status'], 'integer'],
            [['platform_name'], 'string', 'max' => 100],
            [['sys_component_id'], 'string', 'max' => 50],
            [['deleted_at', 'created_by', 'updated_by', 'deleted_by'], 'default', 'value' => null],
            [['status'], 'default', 'value' => 10],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID'),
            'platform_name' => Yii::t('app', '平台名'),
            'sys_component_id' => Yii::t('app', '使用系统组件ID'),
            'created_at' => Yii::t('app', 'Created At'),
            'updated_at' => Yii::t('app', 'Updated At'),
            'deleted_at' => Yii::t('app', 'Deleted At'),
            'created_by' => Yii::t('app', 'Created By'),
            'updated_by' => Yii::t('app', 'Updated By'),
            'deleted_by' => Yii::t('app', 'Deleted By'),
            'status' => Yii::t('app', 'Status'),
        ];
    }
}
